
// ##############################
// ####  note:  bokeweilai lcd main fun
// ####  create:  TANWENHUI (twh:谭文辉)
// ####  date:   2024/6/18
// ##############################

#ifndef __BKWL_LCD_H__
#define __BKWL_LCD_H__
#include "bk_private/bk_init.h"
#include <components/system.h>
#include <os/os.h>
#include <stdio.h>
#include "driver/lcd_types.h"
#include <driver/media_types.h>
#include "driver/lcd_types.h"
#include "lcd_act.h"
// #include "../../../../../../components/media/include/media_app.h"
// #include "../../../../../../components/multimedia/include/media_app.h"
#include "media_app.h"
// components/multimedia/include/media_app.h

// typedef struct
// {
//     unsigned int image_addr; /**< normally flash jpeg  addr */
//     unsigned int img_length;
//     unsigned short x_start;
//     unsigned short y_start;
//     unsigned short x_end;
//     unsigned short y_end;
//     unsigned char display_type;
// } lcd_display_t;

extern bk_err_t bkwl_lcd_init(char *lcd_type_name, media_ppi_t ppi);
extern bk_err_t bkwl_lcd_fill(uint32_t *addr, uint8_t *data, uint16_t width, uint16_t height);
extern bk_err_t bkwl_lcd_display(uint32_t *addr, char *lcd_type_name, media_ppi_t ppi, uint8_t lcd_type, uint16_t width, uint16_t height);
extern bk_err_t bkwl_lcd_display_red();

#endif
